package com.baor.order.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baor.common.annotation.Excel;
import com.baor.common.core.domain.BaseEntity;

/**
 * 商家地址对象 t_shopaddress
 * 
 * @author ruoyi
 * @date 2025-07-18
 */
public class TShopaddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商家地址ID */
    private Long shopaddressId;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contactPerson;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String phone;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 地址类型：0发货地址，1收货地址，2两者 */
    @Excel(name = "地址类型：0发货地址，1收货地址，2两者")
    private Long addressType;

    /** 是否默认：0否，1是 */
    @Excel(name = "是否默认：0否，1是")
    private Long defaultAddress;

    /** 删除标志：0未删除，1删除 */
    @Excel(name = "删除标志：0未删除，1删除")
    private Long delflag;

    public void setShopaddressId(Long shopaddressId) 
    {
        this.shopaddressId = shopaddressId;
    }

    public Long getShopaddressId() 
    {
        return shopaddressId;
    }

    public void setContactPerson(String contactPerson) 
    {
        this.contactPerson = contactPerson;
    }

    public String getContactPerson() 
    {
        return contactPerson;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setAddressType(Long addressType) 
    {
        this.addressType = addressType;
    }

    public Long getAddressType() 
    {
        return addressType;
    }

    public void setDefaultAddress(Long defaultAddress) 
    {
        this.defaultAddress = defaultAddress;
    }

    public Long getDefaultAddress() 
    {
        return defaultAddress;
    }

    public void setDelflag(Long delflag) 
    {
        this.delflag = delflag;
    }

    public Long getDelflag() 
    {
        return delflag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("shopaddressId", getShopaddressId())
            .append("contactPerson", getContactPerson())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("addressType", getAddressType())
            .append("defaultAddress", getDefaultAddress())
            .append("delflag", getDelflag())
            .append("createTime", getCreateTime())
            .toString();
    }
}
